#ifndef ADDDIALOG_H
#define ADDDIALOG_H

#include <QAbstractButton>
#include <QDialog>
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>

namespace Ui {
class AddDialog;
}

class AddDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AddDialog(QWidget *parent = 0);
    ~AddDialog();
    int countSql(QSqlQuery query);

private slots:
    void on_buttonBox_clicked(QAbstractButton *button);

private:
    Ui::AddDialog *ui;
    QSqlDatabase db;

signals:
    void UpdateComBox();
};

#endif // ADDDIALOG_H
